home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form top9Main
- BackColor = &H00C0C0C0&
- Caption = "Top 9 API Tricks for Visual Basic"
- ClientHeight = 5100
- ClientLeft = 1110
- ClientTop = 1485
- ClientWidth = 6195
- Height = 5505
- Left = 1050
- LinkTopic = "Form1"
- ScaleHeight = 540
- ScaleWidth = 540
- Top = 1140
- Width = 6315
- Begin CommandButton Command1
- Caption = "9"
- Height = 435
- Index = 9
- Left = 300
- TabIndex = 8
- Top = 4500
- Width = 855
- End
- Begin CommandButton Command1
- Caption = "8"
- Height = 435
- Index = 8
- Left = 300
- TabIndex = 7
- Top = 3960
- Width = 855
- End
- Begin CommandButton Command1
- Caption = "7"
- Height = 435
- Index = 7
- Left = 300
- TabIndex = 6
- Top = 3420
- Width = 855
- End
- Begin CommandButton Command1
- Caption = "6"
- Height = 435
- Index = 6
- Left = 300
- TabIndex = 5
- Top = 2880
- Width = 855
- End
- Begin CommandButton Command1
- Caption = "5"
- Height = 435
- Index = 5
- Left = 300
- TabIndex = 4
- Top = 2340
- Width = 855
- End
- Begin CommandButton Command1
- Caption = "4"
- Height = 435
- Index = 4
- Left = 300
- TabIndex = 3
- Top = 1800
- Width = 855
- End
- Begin CommandButton Command1
- Caption = "3"
- Height = 435
- Index = 3
- Left = 300
- TabIndex = 2
- Top = 1260
- Width = 855
- End
- Begin CommandButton Command1
- Caption = "2"
- Height = 435
- Index = 2
- Left = 300
- TabIndex = 1
- Top = 720
- Width = 855
- End
- Begin CommandButton Command1
- Caption = "1"
- Height = 435
- Index = 1
- Left = 300
- TabIndex = 0
- Top = 180
- Width = 855
- End
- Begin Label Label1
- BackStyle = 0 'Transparent
- Caption = "Combining Images"
- FontBold = -1 'True
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 9.75
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 315
- Index = 8
- Left = 1260
- TabIndex = 17
- Top = 4620
- Width = 2775
- End
- Begin Label Label1
- BackStyle = 0 'Transparent
- Caption = "Launching a background operation"
- FontBold = -1 'True
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 9.75
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 315
- Index = 7
- Left = 1260
- TabIndex = 16
- Top = 4080
- Width = 4755
- End
- Begin Label Label1
- BackStyle = 0 'Transparent
- Caption = "Screen Capture"
- FontBold = -1 'True
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 9.75
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 315
- Index = 6
- Left = 1260
- TabIndex = 15
- Top = 3540
- Width = 2775
- End
- Begin Label Label1
- BackStyle = 0 'Transparent
- Caption = "Number of Colors Available"
- FontBold = -1 'True
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 9.75
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 315
- Index = 5
- Left = 1260
- TabIndex = 14
- Top = 3000
- Width = 3915
- End
- Begin Label Label1
- BackStyle = 0 'Transparent
- Caption = "Placing Tabs in list boxes"
- FontBold = -1 'True
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 9.75
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 315
- Index = 4
- Left = 1260
- TabIndex = 13
- Top = 1920
- Width = 3075
- End
- Begin Label Label1
- BackStyle = 0 'Transparent
- Caption = "Get a list of running tasks"
- FontBold = -1 'True
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 9.75
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 315
- Index = 3
- Left = 1260
- TabIndex = 12
- Top = 2460
- Width = 2775
- End
- Begin Label Label1
- BackStyle = 0 'Transparent
- Caption = "Close another application"
- FontBold = -1 'True
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 9.75
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 315
- Index = 2
- Left = 1260
- TabIndex = 11
- Top = 1380
- Width = 2775
- End
- Begin Label Label1
- BackStyle = 0 'Transparent
- Caption = "Find the window handle of another application"
- FontBold = -1 'True
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 9.75
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 315
- Index = 0
- Left = 1260
- TabIndex = 10
- Top = 840
- Width = 4875
- End
- Begin Label Label1
- BackStyle = 0 'Transparent
- Caption = "Changing the Default Printer"
- FontBold = -1 'True
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 9.75
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 315
- Index = 1
- Left = 1260
- TabIndex = 9
- Top = 300
- Width = 3075
- End
- Option Explicit
- Sub Command1_Click (Index As Integer)
- Me.Hide
- LastCommand% = Index
- Select Case Index
- Case 1
- ChangePrinter.Show 1
- Case 2, 3
- FindOrClose.Show 1
- Case 4, 5
- TaskListForm.Show 1
- Case 6
- MsgBox Str$(NumberOfColors(hDC)), 0, "Total Colors"
- Case 7
- ScreenCap.Show 1
- Case 8
- LaunchBackground.Show 1
- Case 9
- Combine.Show 1
- End Select
- Me.Show
- End Sub
-